class GeneralLedgerAccount {
        static belongsTo = AccountingBaseElement

        AccountingBaseElement aisBaseElement
        Integer fourthGrade
        String accountName
        Boolean isDefaultDecrease
        String explanationOfAccount

        static constraints = {
          aisBaseElement()
          fourthGrade(max:9999, blank:false, unique:true)
          accountName(blank:false)
          isDefaultDecrease()
          explanationOfAccount(maxSize:10000)
        }

        @Override
        String toString() { 
	  return "$fourthGrade:$accountName"
	}

	static mapping = {
	  sort "fourthGrade"
	}
}
